package jsyf.oa.facade.psi;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 * Created by Maqiuqiu on 2018/10/20.
 */
@Path("/purchaseService")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface PurchaseFacade {

    @Path("/save")
    JSONObject save(String jsonData);

    @Path("/delById")
    Boolean delById(String id);

    @Path("/removeById")
    Boolean removeById(String id);

    @Path("/getPurchaseList")
    JSONObject getPurchaseList(String jsonData);

    @Path("/getPurchaseById")
    JSONObject getPurchaseById(String jsonData);

    @Path("/applyAudit")
    JSONObject applyAudit(String jsonData);

    @Path("/updateBuyInfo")
    Boolean updateBuyInfo(String jsonData);

    @Path("/updateState")
    Boolean updateState(String jsonData);
}
